package com.ymatou.iapi.withdraw.service;

import com.ymatou.iapi.couponmanage.parameter.sellerBatchInfos;
import com.ymatou.iapi.withdraw.parameter.WithDrawInvoiceListResponse;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;

import net.sf.json.JSONObject;
/**
*审核查询列表--买家/买手/推手提现单审核Call
*FreeMaker Template自动生成代码
*/
public class QueryWithDrawInvoiceCall extends YmatouBaseCall{
	private static String opurl ="/api/WithDrawAudit/QueryWithDrawInvoice";
	
	public QueryWithDrawInvoiceCall() {
		super(EnvSetup.getSystemUrl("withdraw_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	 public String getSuccess()
	    {
	        return getString("Success");
	    }

	    public String getCode()
	    {
	        return getString("Code");
	    }
	    public String getTraceTime()
	    {
	        return getString("TraceTime");
	    }
	    public String getBCode()
	    {
	        return getString("BCode");
	    }
	    
	    public String getMsg()
	    {
	        return getString("Msg");
	    }

	    public WithDrawInvoiceListResponse getRespon()
	    {
	    	WithDrawInvoiceListResponse data = null;
	        try {
	            data = (WithDrawInvoiceListResponse) FormatUtil.GSONToObject(getString("Data"), WithDrawInvoiceListResponse.class);
	        } catch (Exception e) {
	            e.printStackTrace();
	        }
	        return data;
	    } 
}